Emberveil source

game/2006Scape Server/src/main/java/com/rs2/util/rsa/SourceRsaKeys.java

package com.rs2.util.rsa;
import java.math.BigInteger;
/** Development keys must be supplied by the operator; production private keys are excluded. */
public final class SourceRsaKeys {
 private SourceRsaKeys() {}
 private static BigInteger required(String property){
  String value=System.getProperty(property);
  if(value==null||!value.matches("[0-9]+"))throw new IllegalStateException("Set -D"+property+" to your generated development RSA value.");
  return new BigInteger(value);
 }
 public static BigInteger privateExponent(){return required("emberveil.rsa.privateExponent");}
 public static BigInteger modulus(){return required("emberveil.rsa.modulus");}
}